<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
html,body{width:100%;height:100%}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script src="/common/js/ibsheet/js/ibsheet.js"></script>
<script src="/common/js/ibsheet/js/ibsheetinfo.js"></script>
<script>
function init(){
	mySheet_LoadPage();
}
</script>
<SCRIPT LANGUAGE="JavaScript">
var mySheet_statuscd_codeparam = 'compcd=&cvid=&grpcd=HRS40&detailcd=&wkdt=&locatecd=&inwhere=&tabwhere=&cdid=&cdnm=&incd=&param1=&param2=&param3=&param4=&param5=&initvalue=&inittext=&savename=statuscd&viewdetailcd=N&allYN=N&uselvlYN=N&getCodeYN=Y';
var mySheet_unitjobcd_codeparam = 'compcd=&cvid=&grpcd=SA000&detailcd=&wkdt=&locatecd=&inwhere=&tabwhere=&cdid=&cdnm=&incd=&param1=&param2=&param3=&param4=&param5=&initvalue=&inittext=&savename=unitjobcd&viewdetailcd=N&allYN=N&uselvlYN=N&getCodeYN=Y';
var mySheet_common = "";//new GridCodeCommon('compcd=&cvid=&grpcd=HRS40&detailcd=&wkdt=&locatecd=&inwhere=&tabwhere=&cdid=&cdnm=&incd=&param1=&param2=&param3=&param4=&param5=&initvalue=&inittext=&savename=statuscd&viewdetailcd=N&allYN=N&uselvlYN=N&getCodeYN=Y&compcd=&cvid=&grpcd=SA000&detailcd=&wkdt=&locatecd=&inwhere=&tabwhere=&cdid=&cdnm=&incd=&param1=&param2=&param3=&param4=&param5=&initvalue=&inittext=&savename=unitjobcd&viewdetailcd=N&allYN=N&uselvlYN=N&getCodeYN=Y');
var mySheet_sellst = "";// new GridSelList();

function mySheet_oncodepopup(row,col){
gridCode_selectedRow = row;
col = DS_ColSaveName('mySheet',col);
switch(col) {
}
}

function mySheet_LoadPage(){
var cfg= {SearchMode:2, Page:10,KeyFieldPosition:'Left',SizeMode:'sizeAuto',ToolTip:true,FrozenCol:1};
mySheet.SetConfig(cfg);
var info={Sort:1,ColMove:1,ColResize:1,HeaderCheck:1};
var headers=[
{Text:"NO.|*|del|ReleaseID|제목|변경담당자|상태|단위업무|관련화면/메뉴|staffuserid|mgruserid|mgruserid|mgruserid|내용|tester1|tester1|2차 테스터|2차 테스터|2차 테스터|fullSrid|게시일|종료일|대상회사정보|svnsridmarkyn|svndocupdateyn|적용특이사항|mgrcomments|test1endyn|test2endyn|applyuserid|disuse|urgencyyn||**",Align:"Center"}
];
mySheet.InitHeaders(headers,info);

var col = [{Type:"Seq",Width:40,Align:"Center",SaveName:"gridseq",Sort:true,UpdateEdit:false,InsertEdit:false,Hidden:false}
,{Type:"Status",Width:40,Align:"Center",ColMerge:true,SaveName:"director",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"DelCheck",Width:0,Align:"Center",ColMerge:true,SaveName:"delchk",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true}
,{Type:"Text",Width:100,Align:"Center",ColMerge:true,SaveName:"releaseid",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:false,InsertEdit:false,EditLen:12,MultiLineText:1}
,{Type:"Text",Width:150,Align:"Left",ColMerge:true,SaveName:"doc",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:false,InsertEdit:false,EditLen:2000,MultiLineText:1}
,{Type:"Text",Width:100,Align:"Center",ColMerge:true,SaveName:"staffnm",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:false,InsertEdit:false,EditLen:30,MultiLineText:1}
,{Type:"Combo",Width:100,Align:"Center",ColMerge:true,SaveName:"statuscd",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:false,InsertEdit:false,ComboText:"",ComboCode:""}
,{Type:"Combo",Width:0,Align:"Left",ColMerge:false,SaveName:"unitjobcd",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,ComboText:"",ComboCode:""}
,{Type:"Text",Width:100,Align:"Left",ColMerge:false,SaveName:"relpageinfo",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"staffid",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"mgruserid",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"mgrusernm",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"mgruserview",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"contents",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"tester1userid",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"tester1useridnm",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"tester2userid",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"tester2useridnm",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"tester2useridview",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"fullsrid",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"postdt",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"enddt",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"applycompinfo",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:50,Align:"Left",ColMerge:false,SaveName:"svnsridmarkyn",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:50,Align:"Left",ColMerge:false,SaveName:"svndocupdateyn",KeyField:1,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"applyremarks",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"mgrcomments",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"test1endyn",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"test2endyn",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:150,Align:"Left",ColMerge:false,SaveName:"applyuserid",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:100,Align:"Left",ColMerge:false,SaveName:"discardremarks",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:0,Align:"Left",ColMerge:false,SaveName:"urgentyn",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Text",Width:0,Align:"Left",ColMerge:false,SaveName:"fileid",KeyField:0,HeaderCheck:true,Sort:true,ToolTipText:"",UpdateEdit:true,InsertEdit:true,Hidden:true}
,{Type:"Result",Width:55,Align:"Center",SaveName:"result",Sort:true,UpdateEdit:false,InsertEdit:false,Hidden:false}
];
mySheet.InitColumns(col);
try{mySheet.SetColHidden('delchk',true);}catch(e){}
mySheet.SetColHidden(33,true);
mySheet.SetSheetWidth('100%'); 
mySheet.SetMergeSheet(msHeaderOnly); 
mySheet.SetEditable(true); 
mySheet.SetVisible(true);
mySheet.SetEllipsis(true);
mySheet.SetActionMenu('추가|*-|정렬|내용자세히보기|테마설정');
//try{ if(localStorage.getItem('partnerGridThemeCd')!=null){ init_sheet(mySheet,localStorage.getItem('partnerGridThemeCd'));}else{init_sheet(mySheet,'GM|Main');} }catch(e){init_sheet(mySheet,'GM|Main');}
//init_message(mySheet);
//try{ if(localStorage.getItem('partnerGridThemeCd')!=null){ mySheet.SetTheme(localStorage.getItem('partnerGridThemeCd'),localStorage.getItem('partnerGridThemeNm')); }    }catch(e){}
mySheet.FitColWidth();

mySheet.DoSearch("./data.jsp");
}
</SCRIPT>
<script language="javascript">
function mySheet_OnSelectMenu(sAction){
switch(sAction) {
case "추가" :
doAction('mySheet','Insert');
break;
case "내용자세히보기" :
alert(DS_GetText('mySheet'));
break;
case "테마설정" :
var option = 'dialogHeight:160px; dialogWidth:220px;edge: Raised;center: yes;help: no; resizable:no ;status: no;unadorned: yes;scroll:no'
if (window.showModelessDialog) { // For IE 
   showModelessDialog('/jsp/pdssfw/web/common/grid_theme.jsp',window,option);
} else { 
   showModalDialog('/jsp/pdssfw/web/common/grid_theme.jsp', window,option); 
}
break;
case "정렬" :
DS_Sort('mySheet',null,null,0);
break;
}
if (funccheck('mySheet_onselectmenu')==true)
func(sAction);
}
</script>
<script language="javascript" >
function mySheet_OnSearchEnd(code, ErrMsg){
if (ErrMsg == 'CODESEARCH') {
if (funccheck('mySheet_oncodesearch')==true)
func();
} else {
grid_searcherr = ErrMsg;
if (ErrMsg == 'EXCELEMP') {
} else {
}
mySheet_common.isinit = true;
//window.status = replace(GMSG002,'%',mySheet.RowCount());
if (funccheck('mySheet_onsearchend')==true)
func(ErrMsg);
}
}
</script>
<script language="javascript" >
function mySheet_OnSaveEnd(code,ErrMsg){
grid_savemsg = ErrMsg;
mySheet.SetColHidden(33,false);
mySheet.FitColWidth();
if (funccheck('mySheet_onsaveend')==true)
func(ErrMsg);
}
</script>
<script language="javascript">
function mySheet_OnClick(row,col,value,CellX, CellY, CellW, CellH){
try{
retrieveCodeRow('mySheet',row,col,value);
var colsavename = mySheet.ColSaveName(col);
if (funccheck('mySheet_onclick')==true&&mySheet.GetRowStatus(row)!='I'&&row>0)
func(row,col,value,colsavename);
if (mySheet_common.isinit) {
mySheet_common.isinit = false;
if (funccheck('mySheet_onselectcell')==true&&mySheet.GetRowStatus(row)!='I'&&row>0)
func(row,col,row,col,colsavename,colsavename);
}
}catch(e){alert('onclick : ' + e.message);}
}
</script>

<script language="javascript">
function mySheet_OnChange(row,col,value){
DS_setComboSubColumn('mySheet','statuscd',row,col,value);

DS_setComboSubColumn('mySheet','unitjobcd',row,col,value);

var colsavename =  mySheet.ColSaveName(col);
if (funccheck('mySheet_onchange')==true)
func(row,col,value,colsavename);
}
</script>

<script language="javascript">
function mySheet_OnSelectCell(oldRow,oldCol,newRow,newCol){
try{
var oldsavename = mySheet.ColSaveName(oldCol);
var newsavename = mySheet.ColSaveName(newCol);
if (oldCol > -1) {
	mySheet_common.oldrow = oldRow;
	if (isGo2OldRow) {
		isGo2OldRow = false;
	}else{
		if (oldRow > 0) {
			if (funccheck('mySheet_onfocus')==true)
				func(oldRow,oldCol,newRow,newCol,oldsavename,newsavename);
			if ((mySheet_common.isinit) || (oldRow != newRow)) {
				mySheet_common.isinit = false;
				if (funccheck('mySheet_onselectcell')==true)
					func(oldRow,oldCol,newRow,newCol,oldsavename,newsavename);
			}
		}
	}
}
}catch(e){alert('onselectcell : ' + e.message);}
}
</script>

<script language="javascript">
function mySheet_OnResize(iWidth,iHeight){
try{
FitColWidth();
}catch(e) {}
}
</script>

<script language="javascript">
function mySheet_OnChangeSum(row){
if (funccheck('mySheet_onchangesum')==true)
func(row);
}
</script>

<script language="javascript">
function mySheet_OnDebugMsg(msg){
if (funccheck('mySheet_ondebugmsg')==true)
func(msg);
}
</script>

<script language="javascript">
function mySheet_OnKeyDown(Row,Col,KeyCode,Shift){
if (funccheck('mySheet_onkeydown')==true)
func(Row,Col,KeyCode,Shift);
}
</script>

<script language="javascript">
function mySheet_OnKeyUp(Row,Col,KeyCode,Shift){
if (funccheck('mySheet_onkeyup')==true)
func(Row,Col,KeyCode,Shift);
}
</script>

<script language="javascript">
function mySheet_OnMouseDown(Button, Shift, X, Y){
if (funccheck('mySheet_onmousedown')==true)
func(mySheet.MouseRow(),mySheet.MouseCol(),Button, Shift, X, Y);
}
</script>

<script language="javascript">
function mySheet_OnMouseMove(Button, Shift, X, Y){
if (funccheck('mySheet_onmousemove')==true)
func(mySheet.MouseRow(),mySheet.MouseCol(),Button, Shift, X, Y);
}
</script>

<script language="javascript">
function mySheet_OnWaitTimeOut(Sec){
if (funccheck('mySheet_onrequesttimeout')==true)
func(Sec);
}
</script>

<script language="javascript">
function mySheet_OnSort(Col,SortArrow){
if (funccheck('mySheet_onsort')==true)
func(Col,SortArrow);
}
</script>

<script language="javascript">
function mySheet_OnDblClick(Row, Col, CellX, CellY, CellW, CellH){
if (funccheck('mySheet_ondblclick')==true)
func(Row, Col, mySheet.GetCellValue(Row, Col),mySheet.ColSavename(Col));
}
</script>

<script language="javascript">
function mySheet_OnPopupClick(Row, Col){
if (funccheck('mySheet_onpopupclick')==true)
func(Row,Col);
}
</script>

<script language="javascript">
function mySheet_OnLoadExcel(){
var colcnt = mySheet.LastCol();
for (var datarow=0; datarow < mySheet.GetDataRows(); datarow++) {
   for (var i=0; i <= colcnt; i++) {
       vdatatype = mySheet.GetCellProperty(datarow, i, 'Type');
           if (vdatatype == 'CheckBox') {
               var info = {FalseValue:'0',TrueValue:'1'};
               mySheet.SetColProperty(i, info);
            }
    }
}
if (funccheck('mySheet_onloadexcel')==true)
func();
}
</script>

<script language="javascript">
function mySheet_OnTreeChild(Row){
if (funccheck('mySheet_ontreechild')==true)
func(Row);
}
</script>

<script language="javascript">
function mySheet_OnUserResize(Col,Width){
if (funccheck('mySheet_onuserresize')==true)
func(Col,Width);
}
</script>



</head>
<body onload="init()">
	<DIV style="width:100%;height:100%">
		<script>createIBSheet("mySheet","50%","100%");</script>
	</DIV>
</body>
</html>